/*
 * @Author: Bonnie
 * @Date: 2021-06-07 14:39:04
 * @LastEditTime: 2021-08-31 17:49:25
 * @LastEditors: Bonnie
 * @Description: 
 * @FilePath: /login-register/vue.config.js
 * 可以输入预定的版权声明、个性签名、空行等
 */
module.exports = {
  devServer: {
    host: "localhost",
    port: "8085",
    hot: true,
    open: false,
    overlay: {
      warning: false,
      error: true,
    },
    /* 跨域代理 */
    proxy: {
      "/serverApi": {
        target: "http://localhost:5500", //代理地址
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          "^/serverApi": "/user",
        },
      },
    },
  },
};
